package com.bbx.taxi.client.Task;

import android.app.Activity;

import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.passanger.CodeBuild;
import com.bbx.api.sdk.model.passanger.SvconfigBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.config.conn.SvconfigNet;
import com.bbx.api.sdk.net.passeger.conn.CodeNet;
import com.bbx.taxi.client.Bean.Message.ObserverListener;

/**
 * 作者：严旭文 on 2016/12/29 11:02
 * 邮箱：420255048@qq.com
 * 配置
 */
public class MySvconfigTask extends BaseTask{
    public ObserverListener.DATA_TYPE TYPE= ObserverListener.DATA_TYPE.SVCONFIG;
    private SvconfigBuild mSvconfigBuild;
    public MySvconfigTask(Activity context) {
        super(context);
        mSvconfigBuild=new SvconfigBuild(context);
        mSvconfigBuild.version=0;
    }
    @Override
    public boolean isShow() {
        return false;
    }

    @Override
    public boolean isReturnString() {
        return false;
    }
    @Override
    public boolean condition() {
        // TODO Auto-generated method stub
        return true;
    }
    @Override
    public void request() {
        setType(TYPE,mSvconfigBuild);
    }
    @Override
    public void success(int status,Object object) {}
    @Override
    public void failed(int status, String msg,String message) {
    }
    @Override
    public BaseNetwork getBaseNetwork() {
        return new SvconfigNet(context);
    }
}

